package com.yxe.dto;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * 转租记录dto
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel("转租记录Dto")
public class SubletDto {

    @ApiModelProperty("预计转租时间")
    @JsonFormat(pattern = "yyyy年MM月dd日 HH:mm",locale = "zh",timezone = "GMT+8")
    private Date subletTime;

    @ApiModelProperty("转租状态")
    private Integer status;

    @ApiModelProperty("转租房间")
    private String roomName;

    @TableField(exist = false)
    private String statue;
}
